package com.polaris.live.viewmodel.message

import androidx.lifecycle.MutableLiveData
import com.polaris.live.common.mvvm.viewmodel.BaseViewModel
import com.polaris.live.common.network.request
import com.polaris.live.common.network.state.ResultState
import com.polaris.live.net.userService
import com.polaris.live.resp.back_resp.AgencyMemberIndicatorResp
import com.polaris.live.resp.base.ListResp

/**
 * HomeMianMessageViewModel
 *
 * @author Created by 半仙 on 2024/6/27/027 19:55
 */
class HomeMianMessageViewModel : BaseViewModel() {

    val mAgencyLiveData = MutableLiveData<ResultState<ListResp<AgencyMemberIndicatorResp>>>()

    private var mPageNumber = 0
    private var mPageSize = 20
    fun getAgencyUserList() {
        request({ userService.getAgencyUser(mPageNumber, mPageSize) }, mAgencyLiveData)
    }
}